<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>用户管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
	/* 	$(document).ready(function() {
			$("#btnExport").click(function(){
				top.$.jBox.confirm("确认要导出用户数据吗？","系统提示",function(v,h,f){
					if(v=="ok"){
						$("#searchForm").attr("action","${ctx}/oa/fileNum/export");
						$("#searchForm").submit();
					}
				},{buttonsFocus:1});
				top.$('.jbox-body .jbox-icon').css('top','55px');
			});
			$("#btnImport").click(function(){
				$.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true}, 
					bottomText:"导入文件不能超过5M，仅允许导入“xls”或“xlsx”格式文件！"});
			});
		});
		function page(n,s){
			if(n) $("#pageNo").val(n);
			if(s) $("#pageSize").val(s);
			$("#searchForm").attr("action","${ctx}/oa/fileNum/list");
			$("#searchForm").submit();
	    	return false;
	    } */
	</script>
</head>
<body>
	<%-- <div id="importBox" class="hide">
		<form id="importForm" action="${ctx}/oa/fileNum/import" method="post" enctype="multipart/form-data"
			class="form-search" style="padding-left:20px;text-align:center;" onsubmit="loading('正在导入，请稍等...');"><br/>
			<input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/>　　
			<input id="btnImportSubmit" class="btn btn-primary" type="submit" value="   导    入   "/>
			<a href="${ctx}/oa/fileNum/import/template">下载模板</a>
		</form>
	</div> --%>
	<ul class="nav nav-tabs">
		<li ><shiro:hasPermission name="oa:oaFile:edit"><a href="${ctx}/oa/fileNum/form">编号生成</a></shiro:hasPermission></li>
		<li class="active"><shiro:hasPermission name="oa:oaFile:view"><a href="${ctx}/oa/fileNum/list">编号列表</a></shiro:hasPermission></li>
	</ul>
	<form:form id="searchForm" modelAttribute="oaFile" action="${ctx}/oa/fileNum/list" method="post" class="breadcrumb form-search ">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<ul class="ul-form">
		
			
			<%-- <li><label>文件编号：</label><form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/></li>
			<li><label>项目名称：</label><form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/></li> --%>
			<!-- <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" onclick="return page();"/> -->
			<!-- 	<input id="btnExport" class="btn btn-primary" type="button" value="导出"/>
				<input id="btnImport" class="btn btn-primary" type="button" value="导入"/></li> -->
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead><tr><th >受控文件编号</th><th>项目名称</th><th>备注</th><th >创建时间</th><%-- <shiro:hasPermission name="sys:user:edit"><th>操作</th></shiro:hasPermission> --%></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="oaFile">
			<tr>
				<td>${oaFile.oaFileCode}</td>
				<td>${oaFile.projectName}</td>
				<td>${oaFile.remarks}</td>
				<td>${oaFile.createTime}</td>
				
				<%-- <shiro:hasPermission name="sys:user:edit"><td>
    				<a href="${ctx}/oa/fileNum/form?id=${oaFile.id}">修改</a>
					<a href="${ctx}/oa/fileNum/delete?id=${oaFile.id}" onclick="return confirmx('确认要删除该用户吗？', this.href)">删除</a>
				</td></shiro:hasPermission> --%>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>